import Mock from 'mockjs'

export default {
  list: () => {
    const rows = Mock.mock({
      'postForm': [{
        name: '创业大厦',
        num: '100312',
        type: '地上',
        address: '清华科技园 创业大厦东侧50米',
        belongs: '华清科技',
        contactName: '刘晓晓',
        contactTel: '18599997777',
        chargeRules: '全天',
        totalParkingNum: '35',
        specialParkingNum: '5',
        emptyParkingNum: '21',
        enterParkingNum: '3',
        outerParkingNum: '3',
        date: '2018-05-17',
        update: '2019-03-15 17:17:18',
        opendate: '08:00 —— 21:30',
        emptyNumLine: '',
        fileList: [{ name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}]
      }],
      'total': 100
    })
    return {
      code: 20000,
      data: rows
    }
  }
}
